icon: Stop calling gtk_widget_set_allocation
authorTimm Bäder <mail@baedert.org>
Thu, 4 May 2017 07:37:05 +0000 (09:37 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:11 +0000 (21:27 -0400)
The allocation passed to size-allocate is the content allocation so this
call doesn't make sense anymore.

gtk/gtkicon.c

index 925c519a0db261d77951686a8a353a05d7aa71ee..c22c071c311563918b0ed4da853d2a64716d931a 100644 (file)
@@ -120,7 +120,6 @@ gtk_icon_size_allocate (GtkWidget     *widget,
   GtkIconPrivate *priv = gtk_icon_get_instance_private (self);
   GtkAllocation clip;
 
-  gtk_widget_set_allocation (widget, allocation);
   gtk_css_gadget_allocate (priv->gadget, allocation,
                            gtk_widget_get_allocated_baseline (widget),
                            &clip);